Skip to content

async_cluster: optimisations #2205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

utkarshgupta137
Copy link
Contributor

@utkarshgupta137 utkarshgupta137 commented May 31, 2022

Pull Request check-list

  • Does $ tox pass with this change (including linting)?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?
  • Was the change added to CHANGES file?

Description of change

  • return true from execute_pipeline if there are any errors
  • use todo list to speedup retries
  • store initialisation node in CommandsParser object
  • add sync context manager for pipeline
  • use if/else instead of try/except
  • make command a function argument in _determine_nodes & _determine_slot
  • add async cluster pipeline benchmark script

- return true from execute_pipeline if there are any errors
- use todo list to speedup retries
- store initialisation node in CommandsParser object
- add sync context manager for pipeline
- use if/else instead of try/except
- make command a function argument in _determine_nodes & _determine_slot

- add async cluster pipeline benchmark script
@codecov-commenter
Copy link

codecov-commenter commented May 31, 2022

Codecov Report

Merging #2205 (e5cc0f1) into master (4a73d85) will decrease coverage by 0.00%.
The diff coverage is 81.15%.

@@            Coverage Diff             @@
##           master    #2205      +/-   ##
==========================================
- Coverage   92.03%   92.03%   -0.01%     
==========================================
  Files         108      108              
  Lines       27631    27634       +3     
==========================================
+ Hits        25430    25432       +2     
- Misses       2201     2202       +1     
Impacted Files Coverage Δ
redis/asyncio/cluster.py 89.93% <79.66%> (-0.16%) ⬇️
redis/asyncio/parser.py 80.76% <90.00%> (+0.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a73d85...e5cc0f1. Read the comment docs.

Copy link
Collaborator

@dvora-h dvora-h left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks as always @utkarshgupta137!

@dvora-h dvora-h merged commit 05fc203 into redis:master Jun 1, 2022
@utkarshgupta137 utkarshgupta137 deleted the async_cluster_optimisations branch June 2, 2022 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants